<?php

class Sgit_Form_Element_Select_Racks extends Sgit_Form_Element_Select
{
    public function init()
    {
        
        $model=new Application_Model_Racks();
        $idZona= Zend_Controller_Front::getInstance()->getRequest()->getParam('idZona');
        
        $where['id_zona = ?']=$idZona;
        
        $opciones =(array)$model->getAll($where,'matricula');
        $this->opciones =(array)$model->assocArray2($opciones,'id','matricula');
     
     
        if(!$this->getLabel())  $this->setLabel('Rack');

    }
}


